home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1995 March / macformat-022.iso / Shareware City / Developers / src / out-of-phase-102-c / OutOfPhase 1.02 Source / OutOfPhase Folder / ASTErrorForm.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-11-23  |  1.2 KB  |  44 lines  |  [TEXT/KAHL]

  1. /* ASTErrorForm.h */
  2.  
  3. #ifndef Included_ASTErrorForm_h
  4. #define Included_ASTErrorForm_h
  5.  
  6. /* ASTErrorForm module depends on */
  7. /* MiscInfo.h */
  8. /* Audit */
  9. /* Debug */
  10. /* Definitions */
  11. /* TrashTracker */
  12. /* Memory */
  13. /* ASTExpression */
  14. /* PcodeObject */
  15. /* CompilerRoot */
  16.  
  17. #include "PcodeObject.h"
  18. #include "CompilerRoot.h"
  19.  
  20. struct ASTErrorFormRec;
  21. typedef struct ASTErrorFormRec ASTErrorFormRec;
  22.  
  23. /* all memory allocated in this module is through TrashTracker */
  24.  
  25. /* forwards */
  26. struct TrashTrackRec;
  27. struct ASTExpressionRec;
  28.  
  29. /* create a new AST error form */
  30. ASTErrorFormRec*        NewErrorForm(struct ASTExpressionRec* Expression, char* String,
  31.                                             struct TrashTrackRec* TrashTracker, long LineNumber);
  32.  
  33. /* type check the error message node.  this returns eCompileNoError if */
  34. /* everything is ok, and the appropriate type in *ResultingDataType. */
  35. CompileErrors                TypeCheckErrorForm(DataTypes* ResultingDataType,
  36.                                             ASTErrorFormRec* ErrorMessage, long* ErrorLineNumber,
  37.                                             struct TrashTrackRec* TrashTracker);
  38.  
  39. /* generate code for an error thing.  returns True if successful, or False if it fails. */
  40. MyBoolean                        CodeGenErrorForm(struct PcodeRec* FuncCode,
  41.                                             long* StackDepthParam, ASTErrorFormRec* ErrorForm);
  42.  
  43. #endif
  44.